package com.czk.model.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/5/11 20:56
 */
public class Client {
    public static void main(String[] args) {
        //
        List<College> collegeList=new ArrayList<>();
        //
        ComputerCollege computerCollege=new ComputerCollege();
        InformationCollege informationCollege=new InformationCollege();
        collegeList.add(computerCollege);
        collegeList.add(informationCollege);
        // 遍历
        new OutputImpl(collegeList).printCollege();
    }
}
